/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.property.vilageinfo.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import com.jeeplus.modules.sys.entity.User;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 小区信息Entity
 * @author 陈龙
 * @version 2019-01-04
 */
public class PropertyVillageinfo extends DataEntity<PropertyVillageinfo> {
	
	private static final long serialVersionUID = 1L;
	private Date buliddate;		// 建成年份
	private String villname;		// 小区名字
	private Double area;		// 占地面积
	private Double buildarea;		// 建筑面积
	private String address;		// 项目地址
	private User vman;		// 负责人
	private String tel;		// 联系电话
	private String plotradio;		// 容积率
	private String greeningrate;		// 绿化率
	
	public PropertyVillageinfo() {
		super();
	}

	public PropertyVillageinfo(String id){
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="建成年份不能为空")
	@ExcelField(title="建成年份", align=2, sort=1)
	public Date getBuliddate() {
		return buliddate;
	}

	public void setBuliddate(Date buliddate) {
		this.buliddate = buliddate;
	}
	
	@ExcelField(title="小区名字", align=2, sort=2)
	public String getVillname() {
		return villname;
	}

	public void setVillname(String villname) {
		this.villname = villname;
	}
	
	@NotNull(message="占地面积不能为空")
	@ExcelField(title="占地面积", align=2, sort=3)
	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}
	
	@NotNull(message="建筑面积不能为空")
	@ExcelField(title="建筑面积", align=2, sort=4)
	public Double getBuildarea() {
		return buildarea;
	}

	public void setBuildarea(Double buildarea) {
		this.buildarea = buildarea;
	}
	
	@ExcelField(title="项目地址", align=2, sort=5)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@NotNull(message="负责人不能为空")
	@ExcelField(title="负责人", fieldType=User.class, value="vman.name", align=2, sort=6)
	public User getVman() {
		return vman;
	}

	public void setVman(User vman) {
		this.vman = vman;
	}
	
	@ExcelField(title="联系电话", align=2, sort=7)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@ExcelField(title="容积率", align=2, sort=14)
	public String getPlotradio() {
		return plotradio;
	}

	public void setPlotradio(String plotradio) {
		this.plotradio = plotradio;
	}
	
	@ExcelField(title="绿化率", align=2, sort=15)
	public String getGreeningrate() {
		return greeningrate;
	}

	public void setGreeningrate(String greeningrate) {
		this.greeningrate = greeningrate;
	}
	
}